<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table>
    <tr>
        <td>医生id</td>
        <td>医生姓名</td>
        <td>医生年龄</td>
        <td>医生电话</td>
        <td>医生邮箱</td>
        <td>医生医院id</td>
        <td>医生医院地址</td>
        <td>医生医院电话</td>
        <td>操作</td>
    </tr>
    <tr th:each="d:${page}">
        <td>[[${d.did}]]</td>
        <td>[[${d.dname}]]</td>
        <td>[[${d.age}]]</td>
        <td>[[${d.phone}]]</td>
        <td>[[${d.email}]]</td>
        <td>[[${d.hid}]]</td>
        <td>[[${d.hospital.address}]]</td>
        <td>[[${d.hospital.phone}]]</td>
        <td><a th:href="@{/hospital/doctor/del(did=${d.did})}">删除</a>
            <a th:href="@{/hospital/doctor/up(did=${d.did})}">修改</a>
        </td>
    </tr>
</table>

<form action="/hospital/doctor/add" method="post">
    <input type="hidden" name="did">
    医生姓名:<input type="text" name="dname"><br>
    医生年龄:<input type="text" name="age"><br>
    医生性别:<input type="text" name="phone"><br>
    医生邮箱:<input type="text" name="email"><br>
    医生医院id:<input type="text" name="hid"><br>
    <input type="submit" value="提交">
</form>


</body>
</html>